package com.A1908.dao;

import com.A1908.entity.AttendPeopleInfo;
import com.A1908.entity.FeastInfo;
import com.A1908.entity.PageEntity;
import com.A1908.entity.User;

import java.util.List;

/*
@name:
@description:
@author: lzy
@title: 天王盖地虎!!!
@time:  2021-03-25 10:02:07
*/
public interface AttendPeopleInfoDao {

    int addAttendPeople(AttendPeopleInfo attendPeopleInfo);

    int delAttendPeople(AttendPeopleInfo attendPeopleInfo);

    //根据宴会删除参会人
    int delAttendPeopleByFeast(FeastInfo info);

    List<AttendPeopleInfo> getAllAttendPeopleInfo(User user);

    List<AttendPeopleInfo> getAllAttendPeopleInfo(User user, PageEntity pageEntity);

    /*根据宴会编号获取参会人信息*/
    List<AttendPeopleInfo> getAttendPeopleInfoByFeast(FeastInfo feastInfo);

    /*根据宴会编号获取礼金总和*/
    double getTotalGiftByByFeast(FeastInfo feastInfo);

    int getCount(User user);

    int editAttendPeople(AttendPeopleInfo attendPeopleInfo);
    /*更新单个值*/
    int editSingleValue(int id,String field,String value);
}
